<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>菜单按钮之操作 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2 title="MenuButton Actions">菜单按钮之操作</h2>
	<p title="Click the buttons below to perform actions.">　　</p>
	<div style="margin:20px 0;">
		<a href="#" class="easyui-linkbutton" onclick="$('#btn-edit').menubutton('disable')" title="Disable Edit">禁用编辑</a>
		<a href="#" class="easyui-linkbutton" onclick="$('#btn-edit').menubutton('enable')" title="Enable Edit">启用编辑</a>
	</div>
	<div class="easyui-panel" style="padding:5px;">
		<a href="#" class="easyui-linkbutton" data-options="plain:true">首页</a>
		<a id="btn-edit" href="#" class="easyui-menubutton" data-options="menu:'#mm1',iconCls:'icon-edit'">编辑</a>
		<a href="#" class="easyui-menubutton" data-options="menu:'#mm2',iconCls:'icon-help'">帮助</a>
		<a href="#" class="easyui-menubutton" data-options="menu:'#mm3'">关于</a>
	</div>
	<div id="mm1" style="width:150px;">
		<div data-options="iconCls:'icon-undo'">撤销</div>
		<div data-options="iconCls:'icon-redo'">重做</div>
		<div class="menu-sep"></div>
		<div>剪切</div>
		<div>复制</div>
		<div>粘贴</div>
		<div class="menu-sep"></div>
		<div>
			<span>工具栏</span>
			<div>
				<div>地址</div>
				<div>链接</div>
				<div>导航工具栏</div>
				<div>书签工具栏</div>
				<div class="menu-sep"></div>
				<div>新工具栏...</div>
			</div>
		</div>
		<div data-options="iconCls:'icon-remove'">删除</div>
		<div>全选</div>
	</div>
	<div id="mm2" style="width:100px;">
		<div>帮助</div>
		<div>更新</div>
		<div>关于</div>
	</div>
	<div id="mm3" class="menu-content" style="background:#f0f0f0;padding:10px;text-align:left">
		<img src="logo1.png" style="width:150px;height:50px">
		<p style="font-size:14px;color:#444;" title="Try jQuery EasyUI to build your modern, interactive, javascript applications.">　　尝试用 jQuery EasyUI 来为你构建<br/>现代交互式 javascript 应用。</p>
	</div>

</body>
</html>